This is the single user manual for the Motion Core Character Controller package. Use this document to set up, use, tune, troubleshoot, and extend the Core controller and the optional FPS add-on.
Package layout:
Assets/Character Controller/
Core/
FPSFirstPerson/
Core is standalone. The FPS add-on depends on Core.
New here? Read this order: Section 1 (Requirements) → Section 2 (Fast Setup) → Section 3 (Demo Scenes). Those three get you a working, playable controller in a few minutes. Everything after that is reference material you can read as you need it.
1. Requirements
- Unity 6000.0 or newer.
- Unity Input System package.
- Unity UI package (
com.unity.ugui) for demo HUD, validation UI, hitmarkers, and generated demo UI. - A player GameObject with
Rigidbody,CapsuleCollider,InputHandler, andPlayerController. - Cinemachine is optional.
CharacterCinemachineAdaptercompiles without a Cinemachine assembly reference. - TextMeshPro is optional and only used by optional debug labels.
The controller uses Unity 6 physics APIs such as Rigidbody.linearVelocity.
2. Fast Setup
Use the setup wizard first. It is the recommended setup path for buyers.
- Import the asset.
- Install or enable Unity Input System and Unity UI.
- Open
Tools > Character Controller > Setup Wizard. - Choose
CoreorFPS. - Press
Create Controller, or disableCreate New Playerand assign an existing player. - Press
Validatefrom the wizard. - Apply safe fixes if needed.
- Press Play.
The wizard adds required components, assigns input assets, applies a motor preset, sets common Rigidbody/CapsuleCollider values, creates a camera rig when requested, and wires FPS components when FPS is selected.
3. Demo Scenes
Menu items:
Tools > Character Controller > Build Demo SceneTools > Character Controller > Verify Core Demo SceneTools > Character Controller > Build FPS Demo SceneTools > Character Controller > Verify FPS Demo Scene
Generated scenes:
- Core:
Assets/Character Controller/Core/Scenes/DemoScene.unity - FPS:
Assets/Character Controller/FPSFirstPerson/Scenes/FPSDemoScene.unity
The Core demo includes flat ground, stairs, walkable and steep slopes, uneven terrain, a low ceiling, a ledge/jump section, a moving platform, and an over-height step marker.
The FPS demo includes weapon handling, ADS, recoil, weapon sway, interactions, targets, damage feedback, footsteps, surface detection, parkour, and a movement test gym.
In the demos, press F1 to hide/show HUD and debug overlays.
4. Required Player Components
Rigidbody
Recommended settings:
Use Gravity: enabled.Is Kinematic: disabled.Freeze Rotation: enabled.Interpolation:Interpolate.Collision Detection:Continuous Dynamicfor fast FPS movement.
PlayerController applies important safety settings at startup, and the validation window can fix common Rigidbody mistakes before play mode.
CapsuleCollider
Recommended starting values:
Radius:0.3.Height:1.8.Center:(0, 0.9, 0).Direction: Y axis.
Use one main body collider on the player root. Put visual meshes, first-person arms, view models, and hitboxes on child objects.
InputHandler
Core serialized fields:
Movement Actions Asset: core.inputactionsasset.Movement Action Map Name: defaults toControl.Extension Action Assets: optional add-on input assets, such asFPSControls.inputactions.
Expected Control actions:
Move:Vector2.Jump: button.Crouch: button.Prone: button.Dash: button.Walk: button.Sprint: button.
PlayerController
Important serialized fields:
Motor Settings: optionalCharacterMotorSettingspreset. When assigned, it drives movement tuning.Speed: target run speed.SprintSpeed: target sprint speed. This is not added on top ofSpeed.WalkSpeed,CrouchSpeed,ProneSpeed: target speeds for those modes.GroundAcceleration,GroundDeceleration: grounded response.AirAcceleration,AirDeceleration: air control.JumpingForce,CoyoteTime,JumpBufferTime,GravityScale,MaxFallSpeed: jump and fall behavior.GroundLayerMask,StairsLayerMask: surface detection layers.MaxSlopeAngle,MaxStairsAngle: walkability limits.GroundSnapDistance,GroundStickForce,StepHeight,StepCheckDistance,StepProbeRadiusScale: uneven terrain and stair behavior.CeilingCheckDistance: clearance margin for standing from crouch or prone.UphillSlopeSpeedMultiplier,DownhillSlopeSpeedMultiplier: slope speed modifiers.
5. Editor Validation
Open Tools > Character Controller > Validation Window.
The validator checks:
- Required player components:
PlayerController,Rigidbody,CapsuleCollider,InputHandler. - Rigidbody settings: non-kinematic, gravity enabled, rotation frozen, interpolation enabled, continuous collision recommended.
- Capsule dimensions: positive radius/height, height at least twice the radius, valid stance heights.
- Core input: movement asset assigned,
Controlmap exists, required actions exist. - Layer masks:
GroundLayerMaskandStairsLayerMaskare not empty. - FPS input: when FPS components are present, an extension input asset with the
FPSmap and expected actions is assigned.
Safe fix buttons can:
- Add missing required components.
- Assign same-object component references.
- Apply recommended Rigidbody defaults.
- Set empty ground/stair masks to
Default. - Assign the included core input asset.
- Add the included FPS input asset when the FPS extension is present.
The validator does not guess project-specific layer names, custom action map names, or final movement tuning.
6. Movement Presets and Tuning
Included presets live in Assets/Character Controller/Core/Data:
TacticalFPSMotorSettings: grounded, responsive FPS baseline.ArcadeFPSMotorSettings: faster and more forgiving.ThirdPersonRPGMotorSettings: slower, animation-friendly movement.ParkourLiteMotorSettings: faster air control and traversal-friendly movement.
Assign one asset to PlayerController -> Motor Settings to swap movement feel. Duplicate a preset before editing project-specific values.
Speed fields:
RunSpeed: normal movement target.SprintSpeed: sprint movement target, not an additive bonus.WalkSpeed: precise movement target.CrouchSpeed: crouched movement target.ProneSpeed: prone movement target.
Keep speeds in this order for readable tuning:
ProneSpeed < CrouchSpeed <= WalkSpeed < RunSpeed < SprintSpeed
Acceleration fields:
GroundAcceleration: how quickly grounded movement reaches target speed.GroundDeceleration: how quickly the controller slows when input stops or target speed drops.AirAcceleration: air steering strength.AirDeceleration: planar speed bleed-off while airborne.
Jump and fall fields:
JumpingForce: upward jump velocity.CanMoveWhileJumping: enables air control.CoyoteTime: grace time after leaving ground.JumpBufferTime: time a jump input remains valid before landing.ParkourBufferTime: time a parkour intent remains valid.GravityScale: extra gravity multiplier through Rigidbody force.MaxFallSpeed: downward velocity clamp.
Ground, stairs, and slopes:
MaxSlopeAngle: highest ordinary ground angle considered walkable.MaxStairsAngle: highest stair angle considered walkable.GroundProbeRadiusScale: ground cast radius relative to capsule radius.GroundSnapDistance: distance used to snap back to nearby walkable ground.GroundStickForce: downward force while grounded.StepHeight: maximum climbable step height.StepCheckDistance: forward distance for step checks.StepProbeRadiusScale: step probe radius relative to capsule radius.CeilingCheckDistance: extra clearance required before standing.UphillSlopeSpeedMultiplier: speed modifier when moving uphill.DownhillSlopeSpeedMultiplier: speed modifier when moving downhill.
Recommended tuning order:
- Set
GroundLayerMaskandStairsLayerMask. - Set capsule radius and height.
- Tune
StepHeightto match stair geometry. - Increase
GroundSnapDistanceonly enough to remove small ledge flicker. - Increase
GroundStickForceonly enough to keep stable contact. - Tune acceleration and deceleration.
- Tune jump/fall.
- Tune slope speed multipliers last.
Slide fields:
SlideDuration: slide lifetime.SlideStartSpeed: starting slide velocity.SlideEndSpeed: minimum ending velocity.SlideSteeringStrength: steering control during slide.SlideCooldownDuration: time before another slide.MinimumSlideInputSpeed: required planar speed before sprint+crouch can become slide.
External force field:
ExternalForceDrag: decay rate for external velocity.
Use PlayerController.AddImpulse for impacts, explosions, launch pads, or weapon knockback. Use SetVelocity for authoritative corrections.
7. Camera Setup
Built-In CameraFollow
Add CameraFollow to a camera and assign the player transform as Target. It supports orbiting, shoulder offset, collision, lock-on influence, and auto-follow yaw.
CameraFollow calls PlayerController.SetMainCameraTransform, which makes movement camera-relative.
Optional Cinemachine
Use CharacterCinemachineAdapter when your project uses Cinemachine.
- Install Cinemachine from Package Manager.
- Create your Cinemachine camera rig.
- Add
CharacterCinemachineAdapter, or start fromAssets/Character Controller/Core/prefabs/CinemachineAdapterRig.prefab. - Assign:
Player ControllerCinemachine CameraFollow TargetLook At Target
- Keep
Assign Player Camera Referenceenabled.
The adapter stores the Cinemachine reference as a plain Component and uses reflection. Core still imports without Cinemachine installed.
For FPS gameplay, prefer FpsCameraController. Cinemachine is better suited for spectators, cutscenes, kill cams, or third-person modes.
8. Animation Integration
Animation is optional. The controller works without an Animator.
To connect your own Animator Controller:
- Add
CharacterAnimatorBridgeto the same GameObject asPlayerController. - Assign an
Animator, or leave it blank so the bridge searches children. - Assign a
CharacterAnimatorParametersasset. - Match your Animator Controller parameter names to the mapping asset.
Default parameters:
- Float:
Speed,PlanarSpeed,Forward,Strafe. - Bool:
IsGrounded,IsFalling,IsJumping,IsSprinting,IsCrouching,IsProne,IsSliding. - Int:
Stance,MovementState. - Trigger:
JumpStarted,Landed,SlideStarted,SlideEnded,VaultStarted,VaultEnded,MantleStarted,MantleEnded.
Blank parameter names are ignored. Missing Animator parameters are ignored, so partial integrations are safe.
Stance values:
0: Standing.1: Crouching.2: Prone.
MovementState values:
0: None.1: Idle.2: Moving.3: Jumping.4: Falling.5: Crouching.6: Prone.7: Sliding.8: Dashing.9: Vaulting.10: Parkour.
The bridge exposes events for jump, land, slide, vault, mantle, and stance changes. Use those events for animation events, IK, audio, VFX, or camera effects without editing movement states.
The FPS demo builder creates simple demo clips for idle, crouch, prone, and ground slide. They animate a generated capsule body only and are integration examples, not final character art.
9. Input Buffering and Action Priority
The controller resolves short-lived action input through PlayerController buffers.
Built-in priority rules:
- FPS parkour modules get first chance to consume jump intent during
Update. - Core vault gets the next chance when a valid vault target exists.
- Grounded or coyote-time jump runs when no valid parkour action consumed the intent.
- Buffered landing jump runs when jump is pressed shortly before landing.
- Extra jumps from
DoubleJumpModulerun only after grounded and coyote-time jumps are no longer valid. - Crouch while sprinting starts a slide only when
CanStartSlide()is valid. Otherwise it becomes crouch. - Prone has priority over held crouch in continuous stance input.
- Interaction commands do not change locomotion state by default. Interaction systems should request movement locks or state changes explicitly.
Public buffer API:
playerController.BufferJumpIntent();
playerController.BufferParkourIntent();
bool hasJump = playerController.HasBufferedJumpIntent;
bool hasParkour = playerController.HasBufferedParkourIntent;
bool consumedJump = playerController.TryConsumeBufferedJumpIntent();
bool consumedParkour = playerController.TryConsumeBufferedParkourIntent();
playerController.ClearBufferedInputs();
For custom buffered actions:
- Buffer input once from your input adapter or command sink.
- Resolve it from one owner system in
UpdateModuleorFixedUpdateModule. - Check action-specific conditions before consuming the buffer.
- Consume and clear only when the action actually starts.
- Avoid direct state-level input subscriptions for actions that compete with jump, parkour, crouch, prone, slide, or interaction.
10. Moving Platforms
Add MovingPlatform to moving or rotating platforms. It supports Rigidbody platforms and scripted transform platforms. The controller tracks platform transform deltas and preserves inherited velocity when jumping from platforms.
Custom platforms can implement IMovingPlatform:
public interface IMovingPlatform
{
Transform PlatformTransform { get; }
Vector3 LinearVelocity { get; }
Vector3 AngularVelocity { get; }
Vector3 GetVelocityAtPoint(Vector3 worldPoint);
}
For Rigidbody platforms, MovingPlatform can use Rigidbody.GetPointVelocity. For scripted platforms, it derives velocity from fixed-step transform deltas.
11. Stable Public API
Use public APIs instead of private fields.
State:
StateSnapshotGetStateSnapshot()CurrentStateNameCurrentStateTypeStanceGroundedVelocityPlanarVelocitySpeedModeSlopeAngleHasSurfaceHitSurfaceHitPlatform
Control gates:
SetMovementEnabled(bool)SetLookEnabled(bool)SetMovementFacingEnabled(bool)SetSlopeAlignmentEnabled(bool)SetGroundProbingEnabled(bool)
Motion and actions:
AddImpulse(Vector3 impulse, ForceMode forceMode = ForceMode.VelocityChange)SetVelocity(Vector3 velocity)Teleport(Vector3 position)Teleport(Vector3 position, Quaternion rotation)TryJump()TryStartSlide()TryStartVault()ForceStance(PlayerStance stance)ClearBufferedInputs()
CharacterSpeedMode covers idle, walk, run, sprint, crouch, prone, slide, air, dash, vault, and parkour.
Custom scripted parkour states should implement ICharacterParkourState so state snapshots and animation bridge report parkour without relying on class-name conventions.
12. Extension Patterns
SkillModule
Use SkillModule for gameplay features that run alongside core states.
public class MySkill : SkillModule
{
protected override void OnInitialize() {}
protected override void OnCleanup() {}
public override void UpdateModule(float deltaTime) {}
public override void FixedUpdateModule(float deltaTime) {}
}
InputExtensionModule
Use InputExtensionModule to read additional action maps from InputHandler assets.
public class MyInputExtension : InputExtensionModule
{
protected override void OnActionsEnabled() {}
protected override void OnActionsDisabled() {}
}
Add-on packages may depend on Core. Core should not depend on add-ons.
13. FPS Add-On Setup
Fast path:
- Open
Tools > Character Controller > Setup Wizard. - Choose
FPS. - Press
Create Controller, or configure an existing player. - Leave
Assign Demo Rifleenabled for a first working setup. - Press
Validate. - Press Play.
Manual requirements:
FPSModuleon the same GameObject asPlayerController.FPSControls.inputactionsinInputHandler -> Extension Action Assets.FpsLocalInputCommandSourceenabled on local player objects.FpsCameraController,WeaponManager,FPSViewMotion,AdsController,RecoilController,WeaponSwayController, and any desired FPS systems.
Expected FPS actions:
LookFireAimReloadMeleeUseWeapon1Weapon2Weapon3Weapon4
The FPS wizard wires the command bus, camera, view motion, ADS, recoil, weapon sway, weapon manager, interaction, inventory, footsteps, hitmarker feedback, parkour, and FPSModule.
14. FPS Systems
Weapons
Create weapon assets from Create > Character Controller > FPS > Weapon Definition.
Important systems:
WeaponDefinition: ScriptableObject weapon setup for hitscan or projectile weapons.WeaponManager: loadout, weapon switching, view-model spawning, ADS FOV, and weapon events.Weapon: base class for fire-rate, semi/burst/full-auto, ammo, and reload behavior.IWeaponModifier: attachment-friendly stat hook.WeaponStateSnapshot: small state packet for UI, save data, or multiplayer replication.
ADS
WeaponDefinition implements IAdsProvider. Each weapon can define multiple AdsSightDefinition entries for iron sights, optics, scopes, or alternate sight positions.
Useful callbacks:
AimStartedAimCanceledFullyAimedAimWeightChangedSightChanged
Recoil
Create recoil profiles from Create > Character Controller > FPS > Recoil Profile.
Profiles support:
- Camera vertical, horizontal, and roll kick.
- Weapon position and rotation kick.
- Recovery delay and speed.
- Kick snappiness.
- Randomization curves.
- Burst accumulation curves.
- Per-axis weapon-position recoil limits.
RecoilController applies recoil through camera and weapon-view offsets, so weapon firing code stays independent from recoil behavior.
Weapon Sway
Create sway profiles from Create > Character Controller > FPS > Weapon Sway Profile.
Sway sources:
MouseMovementSwaySourceMovementSwaySourceIdleBreathingSwaySourceSprintSwaySource
WeaponSwayProfile exposes curves and amplitudes per source, ADS reduction, and smoothing. Weapon sway and camera bob can be tuned or disabled independently.
Damage
Use HealthComponent on players, NPCs, or destructibles. Add DamageHitbox to child colliders for head, torso, limb, armor, or weak-point routing.
Included modifier examples:
DamageMultiplierModifierCriticalDamageModifierHitGroupDamageModifier
Damage payloads and snapshots are designed for multiplayer-friendly replication.
Interaction
FpsInteractor raycasts from the FPS camera and talks only to IInteractable and IHoldInteractable.
Useful events:
FocusChangedPromptChangedHoldStartedHoldProgressChangedHoldCanceledInteractionCompleted
Use IInteractionCondition components for rules such as distance, locked state, inventory keys, quest state, faction, or authority checks.
Inventory
Create item assets from Create > Character Controller > FPS > Inventory.
FpsInventory supports stackable items, ammo counts, weapon items, equipment slots, and quick access slots. InventoryWeaponLoadoutBinder can rebuild the WeaponManager loadout from equipped WeaponItemDefinition assets.
Footsteps And Surfaces
Create surface assets from Create > Character Controller > FPS > Surface Profile. Add SurfaceIdentifier to surfaces or configure SurfaceDetector layer mappings.
FootstepController emits walking, running, and crouching footsteps. IFootstepEffectReceiver is available for custom VFX, decals, or dust.
Hitmarkers
Create a hitmarker profile from Create > Character Controller > FPS > Hitmarker Settings.
Use:
HitmarkerFeedbackControllerHitmarkerCanvasViewHitmarkerSettings
Damage confirmations are published by HealthComponent through DamageEventBus, so hitmarkers are not coupled to guns or projectiles.
Projectiles
Create projectile tuning assets from Create > Character Controller > FPS > Projectile Ballistics Profile.
Projectile features:
- Bullet travel over time.
- Bullet drop through gravity scale.
- Drag.
- Penetration.
- Ricochet.
- Surface-specific impact effects.
- Non-alloc swept casts.
Parkour
Create parkour tuning assets from Create > Character Controller > FPS > Parkour Settings.
Supported mechanics:
- Mantling from jump intent near taller ledges.
- Vaulting from jump intent near low obstacles.
- Wall running while airborne, sprinting, moving fast enough, recently pressing jump, having enough ground clearance, and moving along a valid side wall.
- Ledge grabbing while airborne, jump to climb, crouch to drop.
Wall running intentionally does not trigger from a head-on jump into a wall. By default it requires recent jump intent, enough starting height above walkable ground, forward/sprint input, side-wall alignment, and movement along the wall. If conditions fail, the controller falls normally and does not keep the player attached to the wall.
During active wall-run, WallRunControlledDownwardSpeed controls downward velocity. The run ends when the player releases required input, looks or moves away from the wall direction, reaches walkable ground, loses the wall, or reaches WallRunDuration.
15. FPS Multiplayer Architecture
The FPS add-on is networking-ready but transport-free. It does not depend on Netcode for GameObjects, FishNet, Mirror, Photon, or any networking package.
Command flow:
FpsLocalInputCommandSourceconverts local input toFpsPlayerCommand.- Gameplay systems implement
IFpsCommandSink. FpsCommandBus.SubmitCommanddispatches commands.- Networking code can submit the same payload from client input, server RPCs, prediction buffers, or replay.
State flow:
FpsStateReplicationController.CaptureSnapshotbuilds a transport-neutral state packet.ApplyAuthoritativeSnapshotapplies authoritative position, rotation, velocity, camera, weapon, ADS, and parkour state.SnapshotCapturedandSnapshotAppliedare available for prediction/reconciliation layers.
For multiplayer projects, keep FPSModule but disable or remove FpsLocalInputCommandSource on non-owning proxies.
16. Troubleshooting
Use Tools > Character Controller > Validation Window first.
Character Does Not Move
- Confirm
PlayerController,Rigidbody,CapsuleCollider, andInputHandlerare on the same root. - Confirm
InputHandler -> Movement Actions Assetis assigned. - Confirm
Movement Action Map Namematches the action map, usuallyControl. - Confirm
Moveexists and is aVector2. - Confirm Unity Input System is enabled.
- Confirm your code is not calling
SetMovementEnabled(false).
Input Map Missing
- Core movement expects a map named
Controlunless changed. - Required core actions are
Move,Jump,Crouch,Prone,Dash,Walk, andSprint. - Add-on action maps belong in
InputHandler -> Extension Action Assets. - The FPS add-on expects a map named
FPS.
Bad Layer Masks
GroundLayerMaskmust include ordinary walkable ground.StairsLayerMaskmust include stair/step geometry.- Empty masks prevent ground detection.
- Do not put the player body layer in ground masks unless your scene intentionally requires it.
Jitter On Stairs
- Use simple stable colliders. Avoid tiny overlapping stair colliders.
- Set
StepHeightslightly above visible stair riser height. - Increase
StepCheckDistanceif the controller reaches the riser too late. - Increase
GroundSnapDistanceonly enough to remove flicker. - Keep
GroundStickForcemoderate. - Test at 30, 60, and 120 FPS.
Cannot Stand From Crouch Or Prone
- Check for a ceiling or collider above the capsule.
- Lower
CrouchCapsuleHeightorProneCapsuleHeightfor low cover. - Keep
CeilingCheckDistancesmall but positive. - Confirm child visual colliders are not blocking the body capsule.
Camera Not Rotating
- For third-person, confirm
CameraFollowis on the active camera and has a target. - For FPS, confirm
FpsCameraControllerandFpsLocalInputCommandSourceare present. - Confirm
SetLookEnabled(false)is not active. - Confirm look input exists in the FPS input map.
- Confirm the active camera is tagged
MainCamerawhen relying on automatic camera-relative movement.
FPS Input Not Firing
- Add
FPSControls.inputactionstoInputHandler -> Extension Action Assets. - Confirm the map is named
FPS. - Confirm required FPS actions exist.
- Confirm
FPSModuleis on the player. - Confirm local player objects keep
FpsLocalInputCommandSourceenabled. - For multiplayer proxies, disable local input only on non-owning instances.
Slides Do Not Start
- Slide starts from crouch intent while sprinting only when slide conditions are valid.
- Confirm the player is moving faster than
MinimumSlideInputSpeed. - Confirm
SlideCooldownis not active. - Confirm movement is enabled.
Jump Buffer Or Coyote Time Does Not Work
- Confirm
JumpBufferTimeandCoyoteTimeare greater than zero. - Confirm the
Jumpaction firesperformed. - Confirm a parkour module is not intentionally consuming the buffered jump first.
Moving Platforms Slip Or Jitter
- Add
MovingPlatformto the platform. - For Rigidbody platforms, assign the platform Rigidbody or let
MovingPlatform.Resetfind it. - For scripted transform platforms, leave
preferRigidbodyVelocitydisabled or do not assign a Rigidbody. - Move scripted platforms from
FixedUpdatewhen possible.
17. Migration Notes
Current package contains:
CoreFPSFirstPerson
Core is standalone. FPS depends on Core.
Buyer-visible migration points:
SprintSpeedis the target sprint speed, not a bonus added toSpeed.- Input inspector labels are
Movement Actions Asset,Movement Action Map Name, andExtension Action Assets. - Movement tuning can be assigned through
CharacterMotorSettings. - Animation integration should use
CharacterAnimatorBridgeandCharacterAnimatorParameters. - Stable public APIs should be used for integrations instead of private fields.
- Add
MovingPlatformto platforms the character should ride. - Use
CharacterCinemachineAdapterfor Cinemachine rigs. Do not add a hard Cinemachine assembly reference to Core.
18. Support Checklist
When reporting a problem, include:
- Unity version.
- Whether Input System is enabled.
- Scene or prefab used.
- Screenshots of
PlayerController,InputHandler, and relevant FPS components. - Ground/stair layer setup.
- Input action asset setup.
- Console errors or warnings.
- Steps to reproduce.